package com.example.aicooking.entity;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.Map;

@Configuration
@ConfigurationProperties(prefix = "dify.api")
@Data
public class DifyProperties {
    private String url;
    private Timeout timeout;
    private Map<String, Application> applications;

    @Data
    public static class Timeout {
        private int connect = 30;
        private int read = 120;
        private int write = 30;
    }

    @Data
    public static class Application {
        private String key;
        private String name;
    }
}
